package com.yq.bootdemo.util;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.google.gson.Gson;

public class JSONUtil {
    public static  String getJson(Object o){

        Gson gson = new Gson();
        return  gson.toJson(o);
    }
}
